<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=request.getContextPath()%>/">
<link rel="stylesheet" type="text/css" href="static/css/tupiankuang.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="static/js/jquery-1.12.4.js"></script>
<script>
	function demo(file) {
		if (file.files && file.files[0]) {
			var reader = new FileReader();
			reader.onload = function(evt) {
				$(".tupiankuang img").attr("src", evt.target.result);
			}
			reader.readAsDataURL(file.files[0]);
		} else {
			$(".tupiankuang img").attr("src", evt.target.result);
		}
	}
	
</script>
</head>
<style>

</style>
<body>
	<div>
	
		<form action="tupiankuang" method="post" enctype="multipart/form-data">
			<div class="logo">
				<span>上传logo</span>
			</div>
			<div class="tupiankuang">
				<img width="100px" height="100px">
			</div>
			<input class="file1" type="file" name="file" onchange="demo(this)" />
			<input type="submit" class="anniu4" value="提交" />
		</form>
	</div>
</body>
</html>